<?php
/**
 * Created by IntelliJ IDEA.
 * User: dhy
 * Date: 2015/9/14
 * Time: 9:52
 */
namespace App\Http\Controllers\Shop;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
class ShopController {
    public function index(){
        Session::put('key', 'value');
        $value = Session::get('key');
        var_dump($value);
        return view("Shop.index");
    }

    public function goodslist(){
        return view("Shop.index");
    }

    public function detail(Request $request){
        $img = $request->input("img");
        return view("Shop.detail",["img"=>$img]);
    }
}